package org.turman.buobaobook.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.turman.buobaobook.model.entity.BookSource;
import org.turman.buobaobook.model.request.QueryBookBean;

import java.util.List;

@Mapper
@Repository
public interface BookSourceMapper {
    List<BookSource> selectList(@Param("bookId") Long bookId);

    List<BookSource> listByPage(@Param("queryBean")QueryBookBean queryBookBean);

    BookSource selectById(Long sourceId);
    void update(BookSource bookSource);
    void deleteBatch(Long bookId);
    void insetBatch(List<BookSource> bookSources);
}
